// 所有关于视频管理模块的接口
import request from '../utils/request'
// 上传视频接口
export const upLoadVideoApi = function (data) {
  return request("/VueHandler/UpLoadVideoHandler", data, "post", "multipart")
}
// 添加视频的接口
export const addVideoApi = function (data) {
  return request("/VueHandler/VideoHandler?action=add", data, "post")
}
// 修改视频接口
export const editVideoApi = function (data) {
  return request("/VueHandler/VideoHandler?action=update", data, "post")
}
// 请求视频列表接口
export const getVideoList = function (data) {
  return request("/VueHandler/VideoHandler?action=showlist", data, "post")
}
//删除视频接口
export const delVideoApi = function (ID, _id) {
  return request("/VueHandler/VideoHandler?action=delete", { ID, _id }, "get")
}